{template common/header}
<div class="container"></div>
<div class="container install">
	<div class="install-header">
		<img alt="install logo" src="{imagedir}install-logo.png">
	</div>
	{if $install_error}
		<div class="alert alert-danger">
	        	<strong>出错了!</strong> $install_error['msg']
	    </div>
	{/if}
	<div class="database mt20">
		<form class="form-horizontal" id="install_step3" action="{url install/step3}" method="post">
		<h3>填写数据库信息</h3>
		  <div class="control-group">
		    <label class="control-label" for="hostname">数据库主机*</label>
		    <div class="controls">
		      <input id="hostname" name="hostname" type="text" value="localhost">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="db_port">数据库端口*</label>
		    <div class="controls">
		      <input name="db_port" type="text" value="3306">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="db_login">数据库帐号*</label>
		    <div class="controls">
		      <input name="db_login" type="text" value="">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="db_password">数据库密码*</label>
		    <div class="controls">
		      <input name="db_password" type="password" value="">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="db_database">数据库名称*</label>
		    <div class="controls">
		      <input name="db_database" type="text" value="">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="db_prefix">数据表前缀</label>
		    <div class="controls">
		      <input name="db_prefix" type="text" value="">
		    </div>
		  </div>
	<h3>填写管理员信息</h3>
		  <div class="control-group">
		    <label class="control-label" for="admin_email">管理员E-mail*</label>
		    <div class="controls">
		      <input id="admin_email" name="admin_email" type="text" value="">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="admin_nickname">管理员昵称*</label>
		    <div class="controls">
		      <input name="admin_nickname" type="text" value="">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="admin_password">管理员密码*</label>
		    <div class="controls">
		      <input id="admin_password" name="admin_password" type="password" value="">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="admin_password2">确认密码*</label>
		    <div class="controls">
		      <input id="admin_password2" name="admin_password2" type="password" value="">
		    </div>
		  </div>
		  <div class="form-actions text_c">
	  		<a href="{url install/step2}" class="btn">上一步</a>
	  		<button type="submit" class="btn btn-primary">开始安装</button>
		  </div>
		</form>
	</div>
</div>
<script>

</script>  
{template common/footer}